package com.sddongyun.common;

import com.sddongyun.dao.HisDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by lenovo on 2019-11-30.
 */
@RestController
@RequestMapping("/")
public class TestController {
    @Autowired
    HisDao hisDao;
    @ResponseBody
    @RequestMapping("/index")
    public List index(){
       List list =hisDao.queryLike("主任医师");

        return list;
    }
}
